package com.iversonx.bridge.example_1.v4.msg.sender;

import com.iversonx.bridge.example_1.v4.msg.MessageSender;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 *
 **/
public class EmailMessageSender implements MessageSender {
    private static final Logger LOGGER = LoggerFactory.getLogger(
            EmailMessageSender.class);
    
    @Override
    public boolean support(String type) {
        return "email".equalsIgnoreCase(type);
    }
    
    @Override
    public void send(String message, String toUser) {
        LOGGER.info("发送消息[{}]至{}的邮箱", message, toUser);
    }
}
